package com.ssy.lingxi.settle.accounts.repository;

import com.ssy.lingxi.settle.accounts.entity.ApplyAmountRowDO;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.querydsl.QuerydslPredicateExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 业务请款单行明细Jpa仓库
 * @author Saske
 * @date 2021/12/7
 * @version 2.0.0
 */
@Repository
public interface ApplyAmountRowRepository extends JpaRepository<ApplyAmountRowDO,Long> , JpaSpecificationExecutor<ApplyAmountRowDO> , QuerydslPredicateExecutor<ApplyAmountRowDO> {

    List<ApplyAmountRowDO> findAllByBillIdAndStatus(Long billId , Integer status);

    List<ApplyAmountRowDO> findAllByBillIdAndStatusNot(Long billId , Integer status);
}
